package cn.controller.people;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.service.people.PeopleService;

@Controller
public class PeopleController {
	@Autowired
	private PeopleService peopleService;
	@RequestMapping("hello2.html")
	public String abc(Model model){
		peopleService.test();
		Integer number=peopleService.getAllDogNum();
		model.addAttribute("num", number);
		return "abc";
	}
}
